package com.hdsx.jxcsxm.tjbb.server;

import java.util.List;
import java.util.Map;

import com.hdsx.jxcsxm.tjbb.bean.Bkzh;
import com.hdsx.jxcsxm.tjbb.bean.Excel_list;
import com.hdsx.jxcsxm.tjbb.bean.Plan_upload;
import com.hdsx.jxcsxm.xtgl.bean.TreeNode;
import com.hdsx.jxcsxm.xtgl.bean.Xmjbxx;
import com.hdsx.jxcsxm.zjbf.bean.XmZjbf;

public interface SbzjServer {

	List<Xmjbxx> autoxmmc(String trim);
	List<Xmjbxx> autoNoticeName(String trim);

	List<Xmjbxx> autohm(String trim);

	List<Xmjbxx> queryysqlist(Xmjbxx xmjbxx);
	List<Xmjbxx> querysbzjsj(Xmjbxx xmjbxx);

	int queryysqlistCount(Xmjbxx xmjbxx);
	
	boolean delsqmx(Xmjbxx xmjbxx);
	
	boolean checkNameCf(Xmjbxx xmjbxx);

	boolean insertSbzjsq(Xmjbxx xmjbxx);
	boolean insertNotice(Xmjbxx xmjbxx);
	boolean insertDfzczjlr(Xmjbxx xmjbxx);
	boolean updateSbzjsqMx(Xmjbxx xmjbxx);
	boolean updateSbzjsq(Xmjbxx xmjbxx);

	List<Xmjbxx> selectsbzjList(Xmjbxx xmjbxx);
	List<Xmjbxx> selectNoticeList(Xmjbxx xmjbxx);

	int selectsbzjListCount(Xmjbxx xmjbxx);
	int selectNoticeListCount(Xmjbxx xmjbxx);

	List<Xmjbxx> selectDfzczjlrList(Xmjbxx xmjbxx);

	int selectDfzczjlrListCount(Xmjbxx xmjbxx);

	List<Xmjbxx> selectZjqkdwdzbList(Xmjbxx xmjbxx);

	List<Excel_list> exportZjqkdwdzbList(Excel_list elist);

	int selectZjqkdwdzbListCount(Xmjbxx xmjbxx);

	boolean delsq(Xmjbxx xmjbxx);
	boolean delNotice(Xmjbxx xmjbxx);

	List<Xmjbxx> getSbzjById(Xmjbxx xmjbxx);

	Xmjbxx selectsbzjByzhid(Xmjbxx xmjbxx);

	Xmjbxx sumye(Xmjbxx xmjbxx);
	Xmjbxx sumyeByBJID(Xmjbxx xmjbxx);

	/**
	 * 根据文号查询此文件是否已经上传过
	 * @param uploads
	 * @return
	 */
	public Plan_upload queryFileByWh(Plan_upload uploads);

	/**
	 * 上传设计批复文件
	 * @param uploads
	 * @return 执行结果
	 */
	public boolean insertFile(Plan_upload uploads);

	/**
	 * 添加文件和项目关联
	 * @param uploads
	 * @return
	 */
	public boolean insertFileJl(Plan_upload uploads);


	List<Plan_upload> queryFjByParentId(Plan_upload uploads);
	List<Plan_upload> queryNoticeFjByParentId(Plan_upload uploads);

	boolean deleteFile(Plan_upload uploads);

	boolean insertSbzjList(Xmjbxx xmjbxx,List<Map> data);

	List<Xmjbxx> exportqklrmbdc(Xmjbxx xmjbxx);

	boolean importqklr(List<Map> data);

	Bkzh autosbzjhmNcgl(String xmdj);

	Bkzh autosbzjhmGsd(String xmdj);
}
